virtual void update_sub_picture(int picnum,int x,int y,int sx,int sy,int bytespixel,unsigned char *buf)=0
Parameter | Type | Description |
---|---|---|
picnum | int | picture index |
x | int | x offset |
y | int | y offset |
sx | int | size in x (no need to be power of 2) |
sy | int | size in y (no need to be power of 2) |
bytespixel | int | bytes per pixel (3 or 4) |
buf | unsigned char * | picture pixels ((sx*bytespixel aligned to 4 bytes)*sy) |
None
This virtual function is used to update just a part of a picture in the texture manager. Only the sub-picture pixels are passed. If x and y are 0 and sx and sy the size of the image, it will work just like the update_picture function.